package com.example.demo.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
	@RequestMapping("/hello")
	@ResponseBody
	public Map<String, Object> helloMap() {
		Map<String, Object> helloMap = new HashMap<String, Object>();
		helloMap.put("msg", "Hello Spring Boot");
		return helloMap;
	}
}
